#define SS_DEFAULT_PORT "1255"
#define SS_PORT_FILE "/var/socket_server_port"
#define SS_DEFAULT_LOG_FILE_SIZE (5242880)

static unsigned short SS_Port_Number = 1255;
static char * SS_JSON_Log_File = NULL;
static size_t SS_JSON_Log_Size = SS_DEFAULT_LOG_FILE_SIZE;

static Socket_Server_T *SS_Server;

int main(int argc, char *argv[])
{
	char const *port_str;

	port_str = Get_Config_String_From_File(SS_DEFAULT_PORT, SS_PORT_FILE);

	SS_Server = new Socket_Server_T(SS_Port_Number, SS_Port_Number+1, SS_JSON_Log_File, SS_JSON_Log_Size);

	SS_Server->Run();

	delete SS_Server;
	SS_Server = NULL;

	return 0;
}


